package com.tuniu.agents.common.message.adaper;

import com.tuniu.agents.message.StreamMessage;
import com.tuniu.agents.util.JsonUtil;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class AdapterCard implements StreamMessage {

    private String type ;

    private String productType;

    private String productSubType;

    private String content;

    private Object data;

    private String responseId;

    @Override
    public String toEventString() {
        return  " "+ JsonUtil.toJsonWithUrl(this);
    }
}
